package com.deer.wms.base.system.service;

import com.deer.wms.base.system.model.Pack.PackDetail;
import com.deer.wms.base.system.model.Pack.PackDetail2;
import com.deer.wms.base.system.model.Pack.PackDetailCriteria;
import com.deer.wms.base.system.model.Pack.PackDetailDto;
import com.deer.wms.project.root.service.SuperService;

import java.util.List;


/**
 *
 * @author guo
 * @since 2019/11/18
 */
public interface PackDetailService extends SuperService<PackDetail> {

    List<PackDetailDto> findList(PackDetailCriteria criteria);

    List<PackDetailDto> findByPackId(Integer id);

    /**
     * 根据包装编码删除对应的明细
     * @param packCode 包装编码
     */
    void  deleteByCode(String packCode);

    PackDetail findLevel(Integer packDetailId);

    List<PackDetail> findByCode(String packCode);
    List<PackDetail2> findByCode2(String packCode);

    PackDetail findBy(String field, String value);
}
